package cn.edu.nit.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * @Author xiaobai
 * @Date 2022/8/27 21:47
 * @Version 1.0.0
 */
@Data
@TableName("sys_department")
public class Department {

    @TableId(type = IdType.AUTO)
    private String id;
    @TableField(exist = false)
    private String label;
    private String name;
    private String deptId;
    @TableField(exist = false)
    private String dept;
    private String majorId;
    private String major;
    @TableField(exist = false)
    private List<Department> children;
}
